<%@ page import="edu.hawaii.kukui.ActivityImageAttempt" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <g:set var="entityName" value="${message(code: 'activityImageAttempt.label', default: 'ActivityImageAttempt')}"/>
  <title><g:message code="default.edit.label" args="[entityName]"/></title>
</head>
<body>
<div class="body">
  <h1>Verify Activity</h1>
  <g:hasErrors bean="${activityImageAttemptInstance}">
    <div class="errors">
      <g:renderErrors bean="${activityImageAttemptInstance}" as="list"/>
    </div>
  </g:hasErrors>
  <g:form method="post" enctype="multipart/form-data">
    <g:hiddenField name="id" value="${activityImageAttemptInstance?.id}"/>
    <g:hiddenField name="version" value="${activityImageAttemptInstance?.version}"/>
    <g:hiddenField name="validateComment" value="${activityImageAttemptInstance?.validateComment}"/>
    <g:hiddenField name="validateStatus" value="${activityImageAttemptInstance?.validateStatus}"/>
    <div class="dialog">
      <table>
        <tbody>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="noteToAdmin"><g:message code="activityImageAttempt.noteToAdmin.label" default="Note To Admin"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'noteToAdmin', 'errors')}">
            <g:textArea name="noteToAdmin" cols="40" rows="5" value="${activityImageAttemptInstance?.noteToAdmin}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="validateStatus"><g:message code="activityImageAttempt.validateStatus.label" default="Validate Status"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'validateStatus', 'errors')}">
            <g:select name="validateStatus" from="${activityImageAttemptInstance.constraints.validateStatus.inList}" value="${activityImageAttemptInstance?.validateStatus}" valueMessagePrefix="activityImageAttempt.validateStatus" noSelection="['': '']"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="activityImage"><g:message code="activityImageAttempt.activityImage.label" default="Activity Image"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'activityImage', 'errors')}">
            <input type="file" id="activityImage" name="activityImage"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="imageCaption"><g:message code="activityImageAttempt.imageCaption.label" default="Image Caption"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'imageCaption', 'errors')}">
            <g:textArea name="imageCaption" cols="40" rows="5" value="${activityImageAttemptInstance?.imageCaption}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="selectTimestamp"><g:message code="activityImageAttempt.selectTimestamp.label" default="Select Timestamp"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'selectTimestamp', 'errors')}">
            <g:datePicker name="selectTimestamp" precision="day" value="${activityImageAttemptInstance?.selectTimestamp}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="lastUpdated"><g:message code="activityImageAttempt.lastUpdated.label" default="Last Updated"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'lastUpdated', 'errors')}">
            <g:datePicker name="lastUpdated" precision="day" value="${activityImageAttemptInstance?.lastUpdated}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="submitTimestamp"><g:message code="activityImageAttempt.submitTimestamp.label" default="Submit Timestamp"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'submitTimestamp', 'errors')}">
            <g:datePicker name="submitTimestamp" precision="day" value="${activityImageAttemptInstance?.submitTimestamp}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="kukuiUser"><g:message code="activityImageAttempt.kukuiUser.label" default="Kukui User"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'kukuiUser', 'errors')}">
            <g:select name="kukuiUser.id" from="${edu.hawaii.kukui.KukuiUser.list()}" optionKey="id" value="${activityImageAttemptInstance?.kukuiUser?.id}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="dateCreated"><g:message code="activityImageAttempt.dateCreated.label" default="Date Created"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'dateCreated', 'errors')}">
            <g:datePicker name="dateCreated" precision="day" value="${activityImageAttemptInstance?.dateCreated}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="validateTimestamp"><g:message code="activityImageAttempt.validateTimestamp.label" default="Validate Timestamp"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'validateTimestamp', 'errors')}">
            <g:datePicker name="validateTimestamp" precision="day" value="${activityImageAttemptInstance?.validateTimestamp}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="activity"><g:message code="activityImageAttempt.activity.label" default="Activity"/></label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: activityImageAttemptInstance, field: 'activity', 'errors')}">
            <g:select name="activity.id" from="${edu.hawaii.kukui.Activity.list()}" optionKey="id" value="${activityImageAttemptInstance?.activity?.id}"/>
          </td>
        </tr>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}"/></span>
      <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/></span>
    </div>
  </g:form>
</div>
</body>
</html>
